home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 104
/
MacAddict_104_2005-04.iso
/
Software
/
Internet & Communication
/
WordPress 1.2.2 freeware.dmg
/
wordpress
/
wp-feed.php
< prev
next >
Wrap
PHP Script
|
2004-02-06
|
585b
|
32 lines
<?php
$blog = 1;
$doing_rss = 1;
require('wp-blog-header.php');
if ($feed == '' || $feed == 'feed') {
// TODO: Get default feed from options DB.
$feed = 'rss2';
}
if ( (($p != '') && ($p != 'all')) || ($name != '') || ($withcomments == 1) ) {
require('wp-commentsrss2.php');
} else {
switch ($feed) {
case 'atom':
require('wp-atom.php');
break;
case 'rdf':
require('wp-rdf.php');
break;
case 'rss':
require('wp-rss.php');
break;
case 'rss2':
require('wp-rss2.php');
break;
}
}
?>